<template>
	<view class="xiaoshuo" @tap="pik()">
		<view class="">
			<image :src="book.bookImg" mode=""></image>
		</view>
		
		<view class="">
			{{book.bookName}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			
			book: {
				type: Object,
				required: true
			}
		},
		methods: {
			pik(){
				console.log(this.book.bookId)
				uni.navigateTo({
					url:"/pages/bookdetailed/bookdetailed?id="+this.book.bookId
				})
			}
		}
	}
</script>

<style>
	.xiaoshuo{
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		width: 320rpx;
		height: 470rpx;
		border-radius: 10rpx;
		background-color: white;
		text-align: center;
		font-size: 26rpx;
	}
	.xiaoshuo image{
		width: 320rpx;
		height: 398rpx;
		border-radius: 10rpx;
	}
</style>
